//
//  MaterialSecData.m
//  ZCooking
//
//  Created by LL.F on 16/09/02
//  Copyright (c) __ORGANIZATIONNAME__. All rights reserved.
//

#import "MaterialSecData.h"
#import "MaterialThirdData.h"

@implementation MaterialSecData

+ (NSDictionary *)objectClassInArray{
    return @{@"data" : [MaterialThirdData class]};
}
- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"id"]) {
        _id_Data = value;
    }
}
- (void)setValue:(id)value forKey:(NSString *)key
{
    
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"data"]) {
        NSMutableArray<MaterialThirdData *>  *materialThirdDataArray = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            MaterialThirdData *materialDic = [MaterialThirdData modelWithDic:dic];
            [materialThirdDataArray addObject:materialDic];
        }
        _data = materialThirdDataArray;
    }
}

@end
